eric programming leetcode 225